package com.yxw.live_vod_backend_boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxw.live_vod_backend_boot.entity.YxCsMenuEntity;
import org.apache.ibatis.annotations.Select;

/**
 * @author fangmaoxin
 * @version 1.0
 * @date 2023年9月17日
 * 菜单管理 mapper
 */
public interface MenuMapper extends BaseMapper<YxCsMenuEntity> {

    @Select("select count(1) from yx_cs_user_menu where menu_id = #{menuId}")
    int checkMenuExistRole(Long menuId);

}
